<h2 class="title">{%if $act eq 'add'%}添加{%else%}修改{%/if%}到货记录</h2>
<form action="index.php?c=zy_arrival_log&m={%$act%}&post=1" method=post name=frm enctype="multipart/form-data" onSubmit="return Validator.Validate(this,3)">
<table class="tb_term" width="100%">
<tr>
	<td class="tr_td_width01 alignright">到货地址</td>
	<td>
<!--	<input type=text name="arrival_area" value='{%$arrival_area%}' class="input_edit_long txt-normal" dataType="Require" msg=""> 	-->
	<select name="arrival_area" class="select_edit02 txt-normal">
	{%foreach item=area from=$area_arr%}
		<option value="{%$area%}" {%if $area == $arrival_area %} {%/if%}>{%$area%}</option>
	{%/foreach%}
	</select>
	</td>
	<td class="tr_td_width01 alignright">到货时间</td>
	<td class="tr_td_width03" >
	<input type=text name="arrival_time" value='{%$arrival_time|date_format:"%Y-%m-%d"%}' id="arrival_time" class="input_date_edit txt-normal" readonly>
	<script>
			Calendar.setup({
				inputField     :    "arrival_time",   // id of the input field
				ifFormat       :    "%Y-%m-%d",       // format of the input field
				showsTime      :    false,
				timeFormat     :    "24"
			});
		</script>
	</td>
</tr>
<tr>	
	<td class="alignright">到货数量</td>
	<td colspan="3"><input type=text name="arrival_no" size="15" value='{%$arrival_no%}' class="txt-normal" dataType="Number" msg="">&nbsp;<label class="label01">还剩</label><label class="red"> {%$last_num%} </label>个 </td>
</tr>
</table>
<p class="btn_right">
	<input type=hidden name="mc_log_id" size=30 value='{%$mc_log_id%}'>
	<input type=hidden name="contract_no" size=30 value='{%$contract_no%}'>
	<input type=hidden name="sell_reply_id" size=30 value='{%$sell_reply_id%}'>
	<input type=hidden name='arrival_log_id' id='arrival_log_id' value='{%$arrival_log_id%}'>
	<button type="submit" class="b-default"><span><em>{%if $act eq 'add'%}提交{%else%}更新{%/if%}</em></span></button>	
	<button type="button" class="b-default" onclick="history.go(-1)"><span><em>返回</em></span></button>
</p>
</form>